











package com.woniuxy.listener;

import com.woniuxy.entity.Mail;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * @Author: 马宇航
 * @Description: TODO
 * @DateTime: 22/10/19/0019 16:50
 * @Component: 成都蜗牛学苑
 **/
@Component
public class CunsumerListener2 {
    @RabbitListener(queues = {"ProConQueue"},ackMode ="AUTO")
    public void messageReceive(Mail mail){
        System.out.println("第二个消费者收到消息："+mail);
    }
}